package com.smartsoft.storage.dao.impl;

import java.util.Date;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.smartsoft.storage.dao.UserDao;
import com.smartsoft.storage.entity.User;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

    @Override
    public void addUser(User user) {

        user.setNickName("wang");  
        user.setCreateTime(new Date());  
        user.setModifyTime(new Date());  
        this.getHibernateTemplate().save(user);
    }

}
